package com.jinbooks.entity.channel;

import com.baomidou.mybatisplus.annotation.*;
import com.jinbooks.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 渠道表 jbx_channel
 *
 * @author lingma
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("jbx_channel")
public class Channel extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 工作空间ID
     */
    private String workspaceId;

    /**
     * 渠道类型（1-普通渠道 2-导流渠道）
     */
    private Integer channelType;

    /**
     * 渠道名称
     */
    private String channelName;

    /**
     * 渠道编码
     */
    private String channelCode;

    /**
     * 渠道描述
     */
    private String description;

    /**
     * 排序索引
     */
    private Integer sortIndex;

    /**
     * 状态（0-禁用 1-启用）
     */
    private Integer status;

    /**
     * 删除标记：y-已删, n-正常
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic(value = "n", delval = "y")
    private String deleted;
}